#include "game.h"
#include "tetromino.h"
namespace gm {

bool running;

int row, col;

Tetromino_1 cur;
Tetromino_2 cur_set;
Tetromino_3 cur_s;
int cur_index;

void quit() {
    running = false;
}

void init() {
    running = true;
    row = 2;
    col = 15;
    cur = O;

    cur_set = I_set;
    cur_s = i;
    cur_index = 0;


}

void rotate() {
    // cur = rotate(cur);
    cur_index = (cur_index + 1) % 4;
}

void left() {  
    col--;  
}

void right() {
    col++;
}

void down() {
    row++;
}

} // namespace gm
